package com.hzf.material.dao.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class MaterialListExample implements Serializable {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    private static final long serialVersionUID = 1L;

    public MaterialListExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria implements Serializable {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andMarketListIdIsNull() {
            addCriterion("f.market_list_id is null");
            return (Criteria) this;
        }

        public Criteria andMarketListIdIsNotNull() {
            addCriterion("f.market_list_id is not null");
            return (Criteria) this;
        }

        public Criteria andMarketListIdEqualTo(Integer value) {
            addCriterion("f.market_list_id =", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdNotEqualTo(Integer value) {
            addCriterion("f.market_list_id <>", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdGreaterThan(Integer value) {
            addCriterion("f.market_list_id >", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("f.market_list_id >=", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdLessThan(Integer value) {
            addCriterion("f.market_list_id <", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdLessThanOrEqualTo(Integer value) {
            addCriterion("f.market_list_id <=", value, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdIn(List<Integer> values) {
            addCriterion("f.market_list_id in", values, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdNotIn(List<Integer> values) {
            addCriterion("f.market_list_id not in", values, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdBetween(Integer value1, Integer value2) {
            addCriterion("f.market_list_id between", value1, value2, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListIdNotBetween(Integer value1, Integer value2) {
            addCriterion("f.market_list_id not between", value1, value2, "marketListId");
            return (Criteria) this;
        }

        public Criteria andMarketListNameIsNull() {
            addCriterion("f.market_list_name is null");
            return (Criteria) this;
        }

        public Criteria andMarketListNameIsNotNull() {
            addCriterion("f.market_list_name is not null");
            return (Criteria) this;
        }

        public Criteria andMarketListNameEqualTo(String value) {
            addCriterion("f.market_list_name =", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameNotEqualTo(String value) {
            addCriterion("f.market_list_name <>", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameGreaterThan(String value) {
            addCriterion("f.market_list_name >", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameGreaterThanOrEqualTo(String value) {
            addCriterion("f.market_list_name >=", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameLessThan(String value) {
            addCriterion("f.market_list_name <", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameLessThanOrEqualTo(String value) {
            addCriterion("f.market_list_name <=", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameLike(String value) {
            addCriterion("f.market_list_name like", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameNotLike(String value) {
            addCriterion("f.market_list_name not like", value, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameIn(List<String> values) {
            addCriterion("f.market_list_name in", values, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameNotIn(List<String> values) {
            addCriterion("f.market_list_name not in", values, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameBetween(String value1, String value2) {
            addCriterion("f.market_list_name between", value1, value2, "marketListName");
            return (Criteria) this;
        }

        public Criteria andMarketListNameNotBetween(String value1, String value2) {
            addCriterion("f.market_list_name not between", value1, value2, "marketListName");
            return (Criteria) this;
        }

        public Criteria andImgUrlIsNull() {
            addCriterion("f.img_url is null");
            return (Criteria) this;
        }

        public Criteria andImgUrlIsNotNull() {
            addCriterion("f.img_url is not null");
            return (Criteria) this;
        }

        public Criteria andImgUrlEqualTo(String value) {
            addCriterion("f.img_url =", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlNotEqualTo(String value) {
            addCriterion("f.img_url <>", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlGreaterThan(String value) {
            addCriterion("f.img_url >", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlGreaterThanOrEqualTo(String value) {
            addCriterion("f.img_url >=", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlLessThan(String value) {
            addCriterion("f.img_url <", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlLessThanOrEqualTo(String value) {
            addCriterion("f.img_url <=", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlLike(String value) {
            addCriterion("f.img_url like", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlNotLike(String value) {
            addCriterion("f.img_url not like", value, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlIn(List<String> values) {
            addCriterion("f.img_url in", values, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlNotIn(List<String> values) {
            addCriterion("f.img_url not in", values, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlBetween(String value1, String value2) {
            addCriterion("f.img_url between", value1, value2, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andImgUrlNotBetween(String value1, String value2) {
            addCriterion("f.img_url not between", value1, value2, "imgUrl");
            return (Criteria) this;
        }

        public Criteria andCityIsNull() {
            addCriterion("f.city is null");
            return (Criteria) this;
        }

        public Criteria andCityIsNotNull() {
            addCriterion("f.city is not null");
            return (Criteria) this;
        }

        public Criteria andCityEqualTo(String value) {
            addCriterion("f.city =", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotEqualTo(String value) {
            addCriterion("f.city <>", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThan(String value) {
            addCriterion("f.city >", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityGreaterThanOrEqualTo(String value) {
            addCriterion("f.city >=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThan(String value) {
            addCriterion("f.city <", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLessThanOrEqualTo(String value) {
            addCriterion("f.city <=", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityLike(String value) {
            addCriterion("f.city like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotLike(String value) {
            addCriterion("f.city not like", value, "city");
            return (Criteria) this;
        }

        public Criteria andCityIn(List<String> values) {
            addCriterion("f.city in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotIn(List<String> values) {
            addCriterion("f.city not in", values, "city");
            return (Criteria) this;
        }

        public Criteria andCityBetween(String value1, String value2) {
            addCriterion("f.city between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andCityNotBetween(String value1, String value2) {
            addCriterion("f.city not between", value1, value2, "city");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNull() {
            addCriterion("f.remarks is null");
            return (Criteria) this;
        }

        public Criteria andRemarksIsNotNull() {
            addCriterion("f.remarks is not null");
            return (Criteria) this;
        }

        public Criteria andRemarksEqualTo(String value) {
            addCriterion("f.remarks =", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotEqualTo(String value) {
            addCriterion("f.remarks <>", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThan(String value) {
            addCriterion("f.remarks >", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksGreaterThanOrEqualTo(String value) {
            addCriterion("f.remarks >=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThan(String value) {
            addCriterion("f.remarks <", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLessThanOrEqualTo(String value) {
            addCriterion("f.remarks <=", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksLike(String value) {
            addCriterion("f.remarks like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotLike(String value) {
            addCriterion("f.remarks not like", value, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksIn(List<String> values) {
            addCriterion("f.remarks in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotIn(List<String> values) {
            addCriterion("f.remarks not in", values, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksBetween(String value1, String value2) {
            addCriterion("f.remarks between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andRemarksNotBetween(String value1, String value2) {
            addCriterion("f.remarks not between", value1, value2, "remarks");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdIsNull() {
            addCriterion("f.market_type_id is null");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdIsNotNull() {
            addCriterion("f.market_type_id is not null");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdEqualTo(Long value) {
            addCriterion("f.market_type_id =", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdNotEqualTo(Long value) {
            addCriterion("f.market_type_id <>", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdGreaterThan(Long value) {
            addCriterion("f.market_type_id >", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdGreaterThanOrEqualTo(Long value) {
            addCriterion("f.market_type_id >=", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdLessThan(Long value) {
            addCriterion("f.market_type_id <", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdLessThanOrEqualTo(Long value) {
            addCriterion("f.market_type_id <=", value, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdIn(List<Long> values) {
            addCriterion("f.market_type_id in", values, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdNotIn(List<Long> values) {
            addCriterion("f.market_type_id not in", values, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdBetween(Long value1, Long value2) {
            addCriterion("f.market_type_id between", value1, value2, "marketTypeId");
            return (Criteria) this;
        }

        public Criteria andMarketTypeIdNotBetween(Long value1, Long value2) {
            addCriterion("f.market_type_id not between", value1, value2, "marketTypeId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria implements Serializable {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion implements Serializable {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}